<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>{#block name="title"#} - {#$siteConfig.title#}{#/block#}</title>
	<meta name="viewport" content="width=device-width, initial-scale=1"> 
	<link rel="stylesheet" href="{#$smarty.const._BASE_#}/static/jquery/mobile/jquery.mobile.min.css" />
	<link rel="stylesheet" href="{#$smarty.const._BASE_#}/static/mobile/main.css" />
	<script src="{#$smarty.const._BASE_#}/static/jquery/jquery.js"></script>
	<script src="{#$smarty.const._BASE_#}/static/mobile/main.js"></script>
	<script src="{#$smarty.const._BASE_#}/static/jquery/mobile/jquery.mobile.js"></script>
</head>
<body>
	{#block name="body"#}
	<div data-role="page">
	
		<div data-role="header" data-theme="b">
			<h1>{#block name="title"#}{#/block#}</h1>
			{#block name="back"#}<a href="./" data-icon="arrow-l" data-rel="back">返回</a>{#/block#}
			{#block name="action"#}{#/block#}
		</div><!-- /header -->
	
		<div data-role="content">	
			{#block name="content"#}{#/block#}
		</div><!-- /content -->
		
		<div data-role="footer" data-theme="c" class="ui-bar">
			{#block name="footer"#}Zeroj.net &copy; 2012{#/block#}
			{#if $smarty.session._USER_.id#}
			<a href="./login.php?action=logout" data-role="button" data-ajax="false" style="float: right; margin-left: 10px;">退出</a>
			<a href="./profile.php" data-role="button" data-ajax="false" style="float: right; margin-left: 10px;">账户</a>
			{#/if#}
		</div><!-- /footer -->
	</div><!-- /page popup -->
	{#/block#}
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', '{#$siteConfig.google_analytics_tracking_id#}']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
</body>
</html>
